package jj.common;

import java.util.HashMap;
import java.util.Map;

public class Constant {

	public static Map<String, String> CITY_CODE =null;

	public final static String COMMON_ENCODING = "euc-kr" ;
	public final static String BASE_INFO_URL = "http://www.airportal.co.kr/servlet/aips.life.airinfo.RbHanCTL?cmd=c_getList&";

	public static class FlightType{
		public final static String DOMESTIC = "국내"; 
		public final static String INTERNATIONAL = "국외";		
	}
	
	public static class FlightLandingType{
		public final static String DEPARTURE = "D";
		public final static String ARRIVAL = "A";
	}
	
	public static enum l2{
		DEPART, ARRIVAL
	}
	
	//for URL parameter 
	public static Map<String, String> buildCityCode(){
		Map<String, String> map = new HashMap<String, String>();
		map.put("RKSI","인천");
		map.put("RKSS","김포");
		map.put("RKTU","청주");
		map.put("RKNY","양양");
		map.put("RKJK","군산");
		map.put("RKNW","원주");
		map.put("RKPK","김해");
		map.put("RKPC","제주");
		map.put("RKTN","대구");
		map.put("RKJJ","광주");
		map.put("RKJY","여수");
		map.put("RKPU","울산");
		map.put("RKTH","포항");
		map.put("RKPS","사천");
		map.put("RKJB","무안");
		return map;
	}
	
	public static Map<String, String> buildDomesticCode(){
		Map<String, String> map = new HashMap<String, String>();
		map.put("ICN","인천");
		map.put("GMP","김포");
		map.put("CJJ","청주");
		map.put("YNY","양양");
		map.put("KUV","군산");
		map.put("WJU","원주");
		map.put("PUS","김해");
		map.put("CJU","제주");
		map.put("TAE","대구");
		map.put("KWJ","광주");
		map.put("RSU","여수");
		map.put("USN","울산");
		map.put("KPO","포항");
		map.put("HIN","사천");
		map.put("MWX","무안");
		return map;
	}
}
